

// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   cr.java

package com.zelix;

import java.util.StringTokenizer;
import java.util.Vector;

// Referenced classes of package com.zelix:
//            ar, se, is, ec, 
//            tq, dr, dv

class cr extends ar
{

    private static String z[];

    cr(tq tq1, se se1)
        throws ec
    {
        String s;
        String as[];
        String as2[];
        int l;
        boolean flag;
        StringBuffer stringbuffer;
        String s6;
label0:
        {
            String s7;
label1:
            {
                flag = ec.b;
                super();
                super.a = tq1;
                if(!tq1.k())
                    break MISSING_BLOCK_LABEL_724;
                a(tq1, se1);
                if(!super.b)
                    break MISSING_BLOCK_LABEL_724;
                s = tq1.h();
                String s1 = tq1.g();
                if(s1 == null)
                    break MISSING_BLOCK_LABEL_359;
                Vector vector = is.c(s1);
                stringbuffer = new StringBuffer();
                as = a(vector, stringbuffer, se1);
                String s5 = is.e(s1);
                s6 = null;
                if(s5 != null && s5.length() > 0)
                    s6 = a(s5, se1);
                if(!s.equals(z[1]))
                    break label0;
                int k = super.e.lastIndexOf(".");
                if(k == -1)
                {
                    s7 = super.e;
                    if(!flag)
                        break label1;
                }
                s7 = super.e.substring(k + 1);
            }
            super.h = new dr[1];
            super.h[0] = new dr(s7, as);
            if(!flag)
                break MISSING_BLOCK_LABEL_724;
        }
        if(s.equals(z[0]))
        {
            String s8 = z[2];
            super.h = new dr[1];
            super.h[0] = new dr(s8, as);
            if(!flag)
                break MISSING_BLOCK_LABEL_724;
        }
        as2 = se1.a(super.e, s, s6, stringbuffer.toString());
        if(as2 == null || as2.length == 0)
        {
            String s9 = s;
            super.h = new dr[1];
            super.h[0] = new dr(s9, as);
            if(!flag)
                break MISSING_BLOCK_LABEL_724;
        }
        super.h = new dr[as2.length];
        l = 0;
        if(!flag) goto _L2; else goto _L1
_L1:
        super.h[l] = new dr(as2[l], as);
        l++;
_L2:
        if(l < as2.length) goto _L1; else goto _L3
_L3:
        if(!flag)
            break MISSING_BLOCK_LABEL_724;
        Vector vector1;
        int j;
label2:
        {
            String s2;
label3:
            {
                if(!s.equals(z[1]))
                    break label2;
                super.h = new dr[1];
                int i = super.e.lastIndexOf(".");
                if(i == -1)
                {
                    s2 = super.e;
                    if(!flag)
                        break label3;
                }
                s2 = super.e.substring(i + 1);
            }
            super.h[0] = new dr(s2, null);
            if(!flag)
                break MISSING_BLOCK_LABEL_724;
        }
        if(s.equals(z[0]))
        {
            super.h = new dr[1];
            String s3 = z[2];
            super.h[0] = new dr(s3, ar.i);
            if(!flag)
                break MISSING_BLOCK_LABEL_724;
        }
        vector1 = se1.g(super.e, s);
        if(vector1 == null)
            break MISSING_BLOCK_LABEL_656;
        super.h = new dr[vector1.size()];
        j = 0;
        if(!flag) goto _L5; else goto _L4
_L4:
        dv dv1;
        String as1[];
        String s10;
        dv1 = (dv)vector1.elementAt(j);
        as1 = ar.i;
        s10 = (String)dv1.b();
        if(s10 == null) goto _L7; else goto _L6
_L6:
        StringTokenizer stringtokenizer;
        stringtokenizer = new StringTokenizer(s10, z[3]);
        as1 = new String[stringtokenizer.countTokens()];
        l = 0;
        if(!flag) goto _L9; else goto _L8
_L8:
        as1[l++] = stringtokenizer.nextToken();
_L9:
        if(stringtokenizer.hasMoreTokens()) goto _L8; else goto _L7
_L7:
        super.h[j] = new dr((String)dv1.a(), as1);
        j++;
_L5:
        if(j < vector1.size()) goto _L4; else goto _L10
_L10:
        if(!flag)
            break MISSING_BLOCK_LABEL_724;
        super.h = new dr[1];
        String s4 = tq1.g();
        if(s4 != null)
        {
            Vector vector2 = is.c(s4);
            super.h[0] = new dr(s, (String[])vector2.toArray());
            if(!flag)
                break MISSING_BLOCK_LABEL_724;
        }
        super.h[0] = new dr(s, null);
    }

    private static String z(char[] chs) {
        byte key = 0;
        for (int i = 0; i < chs.length; i++) {
            switch (i % 5) {
                case 0:
                    key =0x2f;
                    break;
                case 1:
                    key =12;
                    break;
                case 2:
                    key =89;
                    break;
                case 3:
                    key =52;
                    break;
                case 4:
                    key =107;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static
    {
        String as[];
        as = new String[4];
        as[0] = z("\023o5]\005Fxg".toCharArray());
        as[1] = z("\023e7]\037\021".toCharArray());
        as[2] = z("\\x8@\002L".toCharArray());
        as[3] = z("\003,".toCharArray());
        z = as;
    }
}